package com.woniu.account.config;

import org.springframework.amqp.core.Queue;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.stereotype.Component;

@Component
@Configuration
public class RabbitMQconfig {

    //声明一个队列
    @Bean
    public Queue registerPhoneQueue() {
        return new Queue("register_phone_queue");
    }

    @Bean
    public Queue updatePhoneQueue() {
        return new Queue("update_phone_queue");
    }

    @Bean
    public Queue LoginCodeQueue() {
        return new Queue("login_code_queue");
    }



}
